<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="utf-8">
  <meta content="width=device-width, initial-scale=1.0" name="viewport">
    <meta name="referrer" content="no-referrer" /> <!--img标签预加载网络图片-->
  <title>猎奇电影爱好者交流平台</title>


  <!-- Favicons -->
  <link href="static/assets/img/favicon.png" rel="icon">


  <!-- Vendor CSS Files -->
  <link href="static/assets/vendor/bootstrap/css/bootstrap.min.css" rel="stylesheet">
  <link href="static/assets/vendor/icofont/icofont.min.css" rel="stylesheet">
  <link href="static/assets/vendor/boxicons/css/boxicons.min.css" rel="stylesheet">
  <link href="static/assets/vendor/animate.css/animate.min.css" rel="stylesheet">
  <link href="static/assets/vendor/venobox/venobox.css" rel="stylesheet">
  <link href="static/assets/vendor/aos/aos.css" rel="stylesheet">

  <!-- Template Main CSS File -->
  <link href="static/assets/css/style.css" rel="stylesheet">

</head>

<body>

    <script type="text/javascript"
            src="../static/assets/js/jquery-2.2.1.min.js">

    </script>
    <script type="text/javascript"
            src="../static/assets/js/bootstrap-table.js">
    </script>
        <link rel="stylesheet" href="../static/assets/css/bootstrap-table.scss">

  <!-- ======= Top Bar ======= -->
  <section id="topbar" class="d-none d-lg-block">
    <div class="container clearfix">

      <div class="social-links float-right">
        <a href="#" class="twitter"><i class="icofont-twitter"></i></a>
        <a href="#" class="facebook"><i class="icofont-facebook"></i></a>
        <a href="#" class="instagram"><i class="icofont-instagram"></i></a>
        <a href="#" class="skype"><i class="icofont-skype"></i></a>
        <a href="#" class="linkedin"><i class="icofont-linkedin"></i></a>
      </div>
    </div>
  </section>

  <!-- ======= Header ======= -->
  <header id="header">
    <div class="container">

      <div class="logo float-left">
        <h1 class="text-light"><a><span>welcome to movies space</span></a></h1>
        <!-- Uncomment below if you prefer to use an image logo -->
        <!-- <a href="backup.html"><img src="static/assets/img/logo.png" alt="" class="img-fluid"></a>-->
      </div>

      <nav class="nav-menu float-right d-none d-lg-block">
        <ul>
          <li><a href="/home">Home</a></li>
          <li class="active"><a href="/movies">movies</a></li>
          <li><a href="/data">Data Table</a></li>
          <li><a href="/about">About Us</a></li>
          <li><a href="/my">{{ username }}</a></li>
        </ul>
      </nav><!-- .nav-menu -->

    </div>
  </header><!-- End Header -->

<!-- ======= Our Team Section ======= -->
    <section id="team" class="team">
      <div class="container">

        <div class="section-title">
          <h2>悬疑恐怖电影列表</h2>
        </div>


      </div>
    </section><!-- End Our Team Section -->

  <section class="counts section-bg">
      <div class="container">
        <table class="table table-bordered" id="table_page">
{#        data-pagination="true"#}
{#        data-side-pagination="client"#}
{#        data-page-size="10">#}
            <tr>
                <td>排名</td>
                <td>电影名</td>
                <td>电影海报</td>
                <td>其他名</td>
                <td>相关介绍</td>
                <td>分数</td>
                <td>评价人数</td>
                <td>简介</td>
            </tr>

            {% for movie in movies %}
                <tr>
                <td>{{ movie[0] }}</td>
                <td>
                    <a href="{{ movie[1] }}">
                        {{ movie[3] }}
                    </a>
                </td>
                <td><img src="{{ movie[2] }}" width="180" height="280"></td>
                <td>{{ movie[4] }}</td>
                <td>{{ movie[5] }}</td>
                <td>{{ movie[6] }}</td>
                <td>{{ movie[7] }}</td>
                <td>{{ movie[8] }}</td>
                <td><a href="/movie_detail?movie_id={{ movie[0] }}">详情</a></td> <!-- 添加详情按钮 -->
            </tr>
            {% endfor %}
            <div class="pagination">
                {% if page > 1 %}
                    <a href="?page=1">&laquo;第一页</a>
                    <a href="?page={{ page - 1 }}">&lt;上一页</a>
                {% endif %}

                {% for p in range(1, total_pages + 1) %}
                    {% if p == page %}
                        <span class="current">{{ p }}</span>
                    {% else %}
                        <a href="?page={{ p }}">{{ p }}</a>
                    {% endif %}
                    {% if not loop.last %}
                        &nbsp; <!-- 添加字符间距 -->
                    {% endif %}
                {% endfor %}

                {% if page < total_pages %}
                    <a href="?page={{ page + 1 }}">&gt;下一页</a>
                    <a href="?page={{ total_pages }}">&raquo;最后一页</a>
                {% endif %}
            </div>
        </table>
      </div>
    </section>



    <!-- ======= Contact Us Section ======= -->
    <section id="contact" class="contact">
      <div class="container">

        <div class="section-title">
          <h2>Contact Us</h2>
        </div>

        <div class="row">



          <div class="col-lg-3 d-flex align-items-stretch" data-aos="fade-up" data-aos-delay="200">
            <div class="info-box ">
              <i class="bx bx-phone-call"></i>
              <h3>Call Us</h3>
              <p>+138 8267 2311<br>+138 8828 8838</p>
            </div>
          </div>
            <div class="col-lg-6 d-flex align-items-stretch" data-aos="fade-up">
            <div class="info-box">
              <i class="bx bx-map"></i>
              <h3>Our Address</h3>
              <p>00000000.@qq.com</p>
            </div>
          </div>

        </div>

      </div>
    </section><!-- End Contact Us Section -->

  </main><!-- End #main -->

  <!-- ======= Footer ======= -->
  <footer id="footer">
    <div class="container">
      <div class="copyright">Copyright &copy; 2023.Movies name All rights reserved.<a target="_blank" ></a></div>
      <div class="credits"></div>
    </div>
  </footer><!-- End Footer -->

  <a href="#" class="back-to-top"><i class="icofont-simple-up"></i></a>

  <!-- Vendor JS Files -->
  <script src="static/assets/vendor/jquery/jquery.min.js"></script>
  <script src="static/assets/vendor/bootstrap/js/bootstrap.bundle.min.js"></script>
  <script src="static/assets/vendor/jquery.easing/jquery.easing.min.js"></script>
  <script src="static/assets/vendor/php-email-form/validate.js"></script>
  <script src="static/assets/vendor/jquery-sticky/jquery.sticky.js"></script>
  <script src="static/assets/vendor/venobox/venobox.min.js"></script>
  <script src="static/assets/vendor/waypoints/jquery.waypoints.min.js"></script>
  <script src="static/assets/vendor/counterup/counterup.min.js"></script>
  <script src="static/assets/vendor/isotope-layout/isotope.pkgd.min.js"></script>
  <script src="static/assets/vendor/aos/aos.js"></script>

  <!-- Template Main JS File -->
  <script src="static/assets/js/main.js"></script>

</body>

</html>